public class FarmProducts {
    private String type;
    private int count;
    private String date;
    private double price;

    public FarmProducts() {}

    public FarmProducts(String type, int count, String date, double price) {
        this.type = type;
        this.count = count;
        this.date = date;
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return  String.format("%-8s",type) +
                String.format("%-8s",count)+
                String.format("%-16s",date) +
                String.format("%-16s",price);
    }
}